High-pass filter

A high-pass filter (HPF) is a device that passes high frequencies and attenuates (i.e., reduces the amplitude of) frequencies lower than its cutoff frequency. A high-pass filter is usually modeled as a linear time-invariant system. It is sometimes called a low-cut filter or bass-cut filter.[1]

High-pass filters have many uses, such as blocking DC from circuitry sensitive to non-zero average voltages or RF devices. They can also be used in conjunction with a low-pass filter to make a bandpass filter. The actual amount of attenuation for each frequency is a design parameter of the filter.

Contents

First-order continuous-time implementation

The simple first-order electronic high-pass filter shown in Figure 1 is implemented by placing an input voltage across the series combination of a capacitor and a resistor and using the voltage across the resistor as an output. The product of the resistance and capacitance (R×C) is the time constant (τ); it is inversely proportional to the cutoff frequency fc, at which the output power is half the input power. That is,

f_c = \frac{1}{2 \pi \tau} = \frac{1}{2 \pi R C},\,

where fc is in hertz, τ is in seconds, R is in ohms, and C is in farads.

Figure 2 shows an active electronic implementation of a first-order high-pass filter using an operational amplifier. In this case, the filter has a passband gain of -R2/R1 and has a corner frequency of

f_c = \frac{1}{2 \pi \tau} = \frac{1}{2 \pi R_1 C},\,

Because this filter is active, it may have non-unity passband gain. That is, high-frequency signals are inverted and amplified by R2/R1.

Discrete-time realization

Discrete-time high-pass filters can also be designed. Discrete-time filter design is beyond the scope of this article; however, a simple example comes from the conversion of the continuous-time high-pass filter above to a discrete-time realization. That is, the continuous-time behavior can be discretized.

From the circuit in Figure 1 above, according to Kirchoff's Laws and the definition of capacitance:

\begin{cases}
V_{\text{out}}(t) = I(t)\, R &\text{(V)}\\
Q_c(t) = C \, \left( V_{\text{in}}(t) - V_{\text{out}}(t) \right) &\text{(Q)}\\
I(t) = \frac{\operatorname{d} Q_c}{\operatorname{d} t} &\text{(I)}
\end{cases}

where Q_c(t) is the charge stored in the capacitor at time t. Substituting Equation (Q) into Equation (I) and then Equation (I) into Equation (V) gives:

V_{\text{out}}(t) = \overbrace{C \, \left( \frac{\operatorname{d} V_{\text{in}}}{\operatorname{d}t} - \frac{\operatorname{d} V_{\text{out}}}{\operatorname{d}t} \right)}^{I(t)} \, R = R C \, \left( \frac{ \operatorname{d} V_{\text{in}}}{\operatorname{d}t} - \frac{\operatorname{d} V_{\text{out}}}{\operatorname{d}t} \right)

This equation can be discretized. For simplicity, assume that samples of the input and output are taken at evenly-spaced points in time separated by \Delta_T time. Let the samples of V_{\text{in}} be represented by the sequence (x_1, x_2, \ldots, x_n), and let V_{\text{out}} be represented by the sequence (y_1, y_2, \ldots, y_n) which correspond to the same points in time. Making these substitutions:

y_i = R C \, \left( \frac{x_i - x_{i-1}}{\Delta_T} - \frac{y_i - y_{i-1}}{\Delta_T} \right)

And rearranging terms gives the recurrence relation

y_i = \overbrace{\frac{RC}{RC %2B \Delta_T} y_{i-1}}^{\text{Decaying contribution from prior inputs}} %2B \overbrace{\frac{RC}{RC %2B \Delta_T} \left( x_i -  x_{i-1} \right)}^{\text{Contribution from change in input}}

That is, this discrete-time implementation of a simple continuous-time RC high-pass filter is

y_i = \alpha y_{i-1} %2B \alpha (x_{i} - x_{i-1}) \qquad \text{where} \qquad \alpha \triangleq \frac{RC}{RC %2B \Delta_T}

By definition, 0 \leq \alpha \leq 1. The expression for parameter \alpha yields the equivalent time constant RC in terms of the sampling period \Delta_T and \alpha:

RC = \Delta_T \left( \frac{\alpha}{1 - \alpha} \right)

If \alpha = 0.5, then the RC time constant equal to the sampling period. If \alpha \ll 0.5, then RC is significantly smaller than the sampling interval, and RC \approx \alpha \Delta_T.

Algorithmic implementation

The filter recurrence relation provides a way to determine the output samples in terms of the input samples and the preceding output. The following pseudocode algorithm will simulate the effect of a high-pass filter on a series of digital samples:

 // Return RC high-pass filter output samples, given input samples,
 // time interval dt, and time constant RC
 function highpass(real[0..n] x, real dt, real RC)
   var real[0..n] y
   var real α := RC / (RC + dt)
   y[0] := x[0]
   for i from 1 to n
     y[i] := α * y[i-1] + α * (x[i] - x[i-1])
   return y

The loop which calculates each of the n outputs can be refactored into the equivalent:

   for i from 1 to n
     y[i] := α * (y[i-1] + x[i] - x[i-1])

However, the earlier form shows how the parameter α changes the impact of the prior output y[i-1] and current change in input (x[i] - x[i-1]). In particular,

Applications

Audio

High-pass filters have many applications. They are used as part of an audio crossover to direct high frequencies to a tweeter while attenuating bass signals which could interfere with, or damage, the speaker. When such a filter is built into a loudspeaker cabinet it is normally a passive filter that also includes a low-pass filter for the woofer and so often employs both a capacitor and inductor (although very simple high-pass filters for tweeters can consist of a series capacitor and nothing else). An alternative, which provides good quality sound without inductors (which are prone to parasitic coupling, are expensive, and may have significant internal resistance) is to employ bi-amplification with active RC filters or active digital filters with separate power amplifiers for each loudspeaker. Such low-current and low-voltage line level crossovers are called active crossovers.[1]

Rumble filters are high-pass filters applied to the removal of unwanted sounds near to the lower end of the audible range or below. For example, noises (e.g., footsteps, or motor noises from record players and tape decks) may be removed because they are undesired or may overload the RIAA equalization circuit of the preamp.[1]

High-pass filters are also used for AC coupling at the inputs of many audio amplifiers, for preventing the amplification of DC currents which may harm the amplifier, rob the amplifier of headroom, and generate waste heat at the loudspeakers voice coil. One amplifier, the professional audio model DC300 made by Crown International beginning in the 1960s, did not have high-pass filtering at all, and could be used to amplify the DC signal of a common 9-volt battery at the input to supply 18 volts DC in an emergency for mixing console power.[2] However, that model's basic design has been superseded by newer designs such as the Crown Macro-Tech series developed in the late 1980s which included 10 Hz high-pass filtering on the inputs and switchable 35 Hz high-pass filtering on the outputs.[3] Another example is the QSC Audio PLX amplifier series which includes an internal 5 Hz high-pass filter which is applied to the inputs whenever the optional 50 and 30 Hz high-pass filters are turned off.[4]

Mixing consoles often include high-pass filtering at each channel strip. Some models have fixed-slope, fixed-frequency high-pass filters at 80 or 100 Hz that can be engaged; other models have 'sweepable HPF'—a high-pass filter of fixed slope that can be set within a specified frequency range, such as from 20 to 400 Hz on the Midas Heritage 3000, or 20 to 20,000 Hz on the Yamaha M7CL digital mixing console. Veteran systems engineer and live sound mixer Bruce Main recommends that high-pass filters be engaged for most mixer input sources, except for those such as kick drum, bass guitar and piano, sources which will have useful low frequency sounds. Main writes that DI unit inputs (as opposed to microphone inputs) do not need high-pass filtering as they are not subject to modulation by low-frequency stage wash—low frequency sounds coming from the subwoofers or the public address system and wrapping around to the stage. Main indicates that high-pass filters are commonly used for directional microphones which have a proximity effect—a low-frequency boost for very close sources. This low frequency boost commonly causes problems up to 200 or 300 Hz, but Main notes that he has seen microphones that benefit from a 500 Hz HPF setting on the console.[5]

Image

High-pass and low-pass filters are also used in digital image processing to perform image modifications, enhancements, noise reduction, etc., using designs done in either the spatial domain or the frequency domain.[6]

A high-pass filter, if the imaging software does not have one, can be done by duplicating the layer, putting a gaussian blur, inverting, and then blending with the original layer using an opacity (say 50%) with the original layer. [7]

The unsharp masking, or sharpening, operation used in image editing software is a high-boost filter, a generalization of high-pass.

See also

References

  1. ^ a b c Watkinson, John (1998). The Art of Sound Reproduction. Focal Press. pp. 268, 479. ISBN 0240515129. http://books.google.com/books?id=01u_Vm5i5isC&pg=PA479. Retrieved March 9, 2010. 
  2. ^ Andrews, Keith; posting as ssltech (January 11, 2010). "Re: Running the board for a show this big?". Recording, Engineering & Production. ProSoundWeb. http://recforums.prosoundweb.com/index.php/m/462291/0/. Retrieved 9 March 2010. 
  3. ^ "Operation Manual: MA-5002VZ". Macro-Tech Series. Crown Audio. 2007. http://www.crownaudio.com/pdf/amps/128313.pdf. Retrieved March 9, 2010. 
  4. ^ "User Manual: PLX Series Amplifiers". QSC Audio. 1999. http://media.qscaudio.com/pdfs/plxuser.pdf. Retrieved March 9, 2010. 
  5. ^ Main, Bruce (February 16, 2010). "Cut 'Em Off At The Pass: Effective Uses Of High-Pass Filtering". Live Sound International (Framingham, Massachusetts: ProSoundWeb, EH Publishing). 
  6. ^ Paul M. Mather (2004). Computer processing of remotely sensed images: an introduction (3rd ed.). John Wiley and Sons. p. 181. ISBN 9780470849194. http://books.google.com/books?id=Idj8Eg-KtMAC&pg=PA181&dq=image+high-pass+low-pass+frequency-domain&hl=en&ei=S3XxTNm2BtK1ngemtKn1Cg&sa=X&oi=book_result&ct=result&resnum=6&ved=0CE8Q6AEwBQ#v=onepage&q=image%20high-pass%20low-pass%20frequency-domain&f=false. 
  7. ^ "Gimp tutorial with high-pass filter operation". http://www.gimp.org/tutorials/Sketch_Effect/. 

External links